import request from '@/utils/request'

class APIEarnings {
    static getProfit(params: PageQuery) {
        return request<any, ResponseData>({
            url: '/getProfit',
            method: 'POST',
            params
        })
    }

    static withdrawal(data: PageQuery) {
        return request<any, ResponseData>({
            url: '/withdrawal',
            method: 'POST',
            data
        })
    }

    static getProtocol() {
        return request<any, ResponseData>({
            url: '/getProtocol',
            method: 'POST',
        })
    }


    static setProtocolLog() {
        return request<any, ResponseData>({
            url: '/setProtocolLog',
            method: 'POST',
        })
    }
}

export default APIEarnings
